package com.prs.crm.domain.cdxh.salary;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Salary;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2010-12-17 上午10:31:52 简单说明
 *          ---------------------------------工资表------------------
 */
@Entity
@Table(name = "cdxh_DefineSalary")
public class DefineSalary extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 年份
	 */
	private String salYear;

	/**
	 * 月份
	 */
	private String salMonth;
	/**
	 * 发放组名
	 * 
	 * 配料组,成型组,印刷组
	 */
	private String salTeam;
	/**
	 * 薪酬标准
	 */
	@ManyToOne
	private Salary salCriterion;
	/**
	 * 发放人名
	 */
	private String salPersonName;
	/**
	 * 生产奖惩金额
	 * 
	 * @return
	 */
	private Double rewardsPunishment;
	/**
	 * 工资单登记状态
	 * 
	 * @return
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private int registState;
	/**
	 * 总共工资状态
	 * @return
	 */
	private Double totalMoney;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSalYear() {
		return salYear;
	}

	public void setSalYear(String salYear) {
		this.salYear = salYear;
	}

	public String getSalMonth() {
		return salMonth;
	}

	public void setSalMonth(String salMonth) {
		this.salMonth = salMonth;
	}

	public String getSalTeam() {
		return salTeam;
	}

	public void setSalTeam(String salTeam) {
		this.salTeam = salTeam;
	}

	public Salary getSalCriterion() {
		return salCriterion;
	}

	public void setSalCriterion(Salary salCriterion) {
		this.salCriterion = salCriterion;
	}

	public String getSalPersonName() {
		return salPersonName;
	}

	public void setSalPersonName(String salPersonName) {
		this.salPersonName = salPersonName;
	}

	public Double getRewardsPunishment() {
		return rewardsPunishment;
	}

	public void setRewardsPunishment(Double rewardsPunishment) {
		this.rewardsPunishment = rewardsPunishment;
	}

	public int getRegistState() {
		return registState;
	}

	public void setRegistState(int registState) {
		this.registState = registState;
	}

	public Double getTotalMoney() {
		return totalMoney;
	}

	public void setTotalMoney(Double totalMoney) {
		this.totalMoney = totalMoney;
	}

}
